<?php namespace App\Infra;

use App\Utils\ModelOperatorTrait;
use App\Models\TourismRecommend;
class TourismRecommendManager{
	use ModelOperatorTrait;

	public function getTourismRecommends($conditions = null,$first = false,$union = []){
		return $this->findModel(TourismRecommend::class,TourismRecommend::query()->with($union),$conditions,$first);
	}

	public function updateTourismRecommend($conditions = null,$data = null){
		$this->update(TourismRecommend::class,TourismRecommend::query(),$conditions,$data);
	}

	public function createTourismRecommend($data){
		$this->create(TourismRecommend::class,$data);
	}

	public function deleteTourismRecommend($conditions = null){
		$this->delete(TourismRecommend::class,TourismRecommend::query(),$conditions);
	}
}